This is an automatic translation to english from a reference to port.dll in german

################################################## ###################### 
# # # # 
Reference to the # # # # PORT.DLL 
# # # # 
################################################## ###################### 

All function names must be written in large characters (except for 
Java). Some features do not work under Windows NT. The PORT.DLL 
may be in the SYSTEM directory in the Windows directory or in 
Application directory. 


Charging the PORT.DLL is under C / C + + as follows: 
================================================== === 

typedef BYTE (CALLBACK * LPFNDLLFUNC) (WORD); 

HINSTANCE hPortDLL; 
LPFNDLLFUNC lpfnDllFunc; 
szFuncName char [] = "FUNCTIONNAME"; 
BYTE uReturnValue; 
WORD wValue; 

hPortDLL = LoadLibrary ( "port"); 
lpfnDllFunc = (LPFNDLLFUNC) GetProcAddress (hPortDLL, szFuncName); 
uReturnValue = lpfnDllFunc (wValue); 

The constructors' typedef BYTE (CALLBACK * LPFNDLLFUNC) (WORD) "defined 
is a function pointer for the call to the function in the DLL. 
In this instance, the return BYTE and expects the call 
a parameter of type WORD. The name of the DLL aufzurufenden 
Function, in the string szFuncName []. That 
actually loading the DLL in the address space will be available by 
calling LoadLibrary (). Calling GetProcAddress () Concerned 
associated with the function name associated pointer to the Entry 
the function in the DLL. The function can now with the previously 
defined function called Pointer. Since the call-code skeleton 
calling for each function is always the same and only 
Function name and function pointer definition change, the 
Here in the declaration for C / C + + only these two parts 
. 


Using the DLL is under Java as follows: 
================================================== = 

Since Java platform actually create code, is the 
Integration of DLL's disappearance only in the portability of generated 
Bytecode to realize. They use the Java supplied 
Java Native Interface (JNI), which makes it possible, "native" (Java 
foreign) code. The declaration of the functions in Java 
therefore contains the key word "native", which the Java compiler 
informed that the actual implementation of the function 
in another high-level language is (in this case C). After the 
Declaration of these functions is Java source code compiles and 
it is one. "class" file. This file can 
Provided the Java tool javah "a C-compliant header file 
generate in a kind of "exchange of data types". 
Did you have the actual implementation of the functions carried out 
, then the carbon sources to further DLL compiled. 
The resulting DLL has the advantage in Java to be loaded 
and is thus a kind of "mediator" between Java and the 
C functions dar. 

That is in the integration of PORT.DLL exploited in Java. 
There will be a PortDLLWrapper class produced a compliant 
PortDLLWrapper.dll loads, which in turn the function calls to the 
actual PORT.DLL relayed. So the functions PORT.DLL 
Java out to use the following files are necessary: 

1st PortDLLWrapper.class ==> declarations of the function name 
                                      under Java 
2nd PortDLLWrapper.dll ==> DLL intermediary between Java and 
                                      the PORT.DLL 
3rd PortDLLWrapperException.class ==> Error messages from C for Java 

The call of a function under Java is ultimately measured by: 

   Try 
   ( 
     PortDLLWrapper. <<function_name>> (<<parameter>>); 
   ) 
   Catch (PortDLLWrapperException e) 
   ( 
     System.err.println ( "Exception:" + e.getMessage ()); 
   ) 
  
In this respect, the call of the PORT.DLL functions under Java 
special position, since the call is not directly, but 
through the wrapper class is sealed. The use is therefore 
No new declaration of the functions, but only the 
Existence of the above three files. To create was 
Java2 SDK 1.2.2 under Win98. 


Port commands: 
============ 
(not Windows NT) 

INPORT 
Reading a port. 
Parameters: Address (0. .65535) 
Return: Contents (bytes) of the specified port address 

Declaration in Java: 
public static native short inport (int port) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef BYTE (CALLBACK * LPFNDLLFUNC) (WORD); 
szFuncName char [] = "INPORT"; 

Declaration in Delphi: 
Function INPORT (port addresses: Word): Byte; stdcall; external 'port.dll'; 

Declaration in VB and VBA 
Declare Function INPORT Lib "port" (ByVal p%) As Integer 


OUTPORT 
Output to a port 
Parameters: Address (0. .65535), data (0 .255) 
Return: none. 

Declaration in Java: 
public static void native outport (int port, short value) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD, BYTE); 
szFuncName char [] = "OUTPORT"; 

Declaration in Delphi: 
Procedure OUTPORT (port addresses: Word; Data: byte); stdcall; external 'port.dll'; 

Declaration in VB and VBA 
Declare Function INPORT Lib "port" (ByVal p%) As Integer 


Serial Interface: 
======================= 

OPENCOM 
Open the serial interface 
Parameters: string as nullterminierter String 
Return: When error 0 

Declaration in Java: 
public static native boolean opencom (String param) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (char *); 
szFuncName char [] = "OPENCOM"; 

Declaration in Delphi: 
OPENCOM Function (S: PCHAR): integer; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub OPENCOM Lib "port" (ByVal A $) 
Declare Function OPENCOM Lib "port" (ByVal A $) As Integer 

Note: The string is directly Windows. Under 
Windows 95/98/NT is possible following call: 
OPENCOM "COM2: baud = 19200 data = 8 parity stop = N = 1" 
Under Windows 95/98 also works: 
OPENCOM "COM2, 19200, N, 8.1" 


CLOSECOM 
Close the serial interface 
Parameters: none 
Return: none 

Declaration in Java: 
public static native boolean closecom () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "CLOSECOM"; 

Declaration in Delphi: 
Procedure CLOSECOM; stdcall; external 'port.dll'; 

Declaration in VB and VBA 
Declare Sub CLOSECOM Lib "port" () 


READBYTE 
Read a byte from the serial interface. This must be previously 
been opened. 
Parameters: none 
Return: -1 at fault, otherwise the received bytes 

Declaration in Java: 
public static native short readbyte () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "READBYTE"; 

Declaration in Delphi: 
Function READBYTE: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function READBYTE Lib "port" () As Integer 


SENDBYTE 
Send a byte of the serial interface. This must be previously 
been opened. 
Parameters: A byte (0 .255) 
Return: none 

Declaration in Java: 
public static void native sendbyte (short data) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "SENDBYTE"; 

Declaration in Delphi: 
Procedure SENDBYTE (value: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub SENDBYTE Lib "port" (ByVal B%) 


DSR 
Queries the serial line DSR. This must be previously been opened. 
Parameters: none 
Return: state of the line (1 / 0) 

Declaration in Java: 
public static native boolean DSR () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef WORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "DSR"; 

Declaration in Delphi: 
Function DSR: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function DSR Lib "port" () As Integer 


CTS 
Queries the serial line CTS. This must be previously been opened. 
Parameters: none 
Return: state of the line (1 / 0) 

Declaration in Java: 
public static native boolean CTS () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef WORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "CTS"; 

Declaration in Delphi: 
Function CTS: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function CTS Lib "port" () As Integer 


RI 
Queries the serial line RI. This must be previously been opened. 
Parameters: none 
Return: state of the line (1 / 0) 

Declaration in Java: 
public static native boolean RI () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef WORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "RI"; 

Declaration in Delphi: 
Function RI: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function RI Lib "port" () As Integer 


DCD 
Queries the serial line DCD. This must be previously been opened. 
Parameters: none 
Return: state of the line (1 / 0) 

Declaration in Java: 
public static native boolean DCD () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef WORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "DCD"; 

Declaration in Delphi: 
DCD Function: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function DCD Lib "port" () As Integer 


RTS 
Setting the serial line RTS. This must be previously been opened. 
Parameters: Value (0 .1) 
Return: none 

Declaration in Java: 
public static native boolean RTS (boolean mode) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "RTS"; 

Declaration in Delphi: 
Procedure RTS (value: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub RTS Lib "port" (ByVal value%) 


TXD 
Setting the serial line TxD. This must be previously been opened. 
Parameters: Value (0 .1) 
Return: none 

Declaration in Java: 
public static native boolean TXD (boolean mode) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "TXD"; 

Declaration in Delphi: 
TXD Procedure (value: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub TXD Lib "port" (ByVal value%) 


DTR 
Setting the serial line DTR. This must be previously been opened. 
Parameters: Value (0 .1) 
Return: none 

Declaration in Java: 
public static native boolean DTR (boolean mode) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "DTR"; 

Declaration in Delphi: 
DTR Procedure (value: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub DTR Lib "port" (ByVal value%) 


TIMEOUT 
Set the timeout of the serial interface. This must be previously 
been opened. If during this time there are no signs 
, it is READBYTE canceled and -1 back. 
Parameters: Time in milliseconds (1. .65535) 
Return: Previous time in milliseconds 

Declaration in Java: 
public static native int timeout (int duration) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "TIMEOUT"; 

Declaration in Delphi: 
TIMEOUT Procedure (value: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub TIMEOUT Lib "port" (ByVal value%) 


Sound Card: 
=========== 

SOUNDIS 
If determine whether a sound card is available 
Parameters: none 
Return: 0 or -1 or True or False 

Declaration in Java: 
public static native boolean soundis () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "SOUNDIS"; 

Declaration in Delphi: 
Function SOUNDIS: Boolean; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function SOUNDIS Lib "port" () As Integer 


SOUNDCAPIN 
The sound card recording properties are in a MessageBox 
. 
Parameters: none 
Return: none 

Declaration in Java: 
public static void native soundcapin () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "SOUNDCAPIN"; 

Declaration in Delphi: 
Procedure SOUNDCAPIN; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub SOUNDCAPIN Lib "port" () 


SOUNDCAPOUT 
The sound card playback properties are in a MessageBox 
. 
Parameters: none 
Return: none 

Declaration in Java: 
public static void native soundcapout () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "SOUNDCAPOUT"; 

Declaration in Delphi: 
Procedure SOUNDCAPOUT; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub SOUNDCAPOUT Lib "port" () 


SOUNDIN 
Starts a sound recording (mono) and presents the data in the passed 
Buffer memory. 
Parameters: memory and memory size (in bytes) 
Return: none 

Declaration in Java: 
public static native int [] soundin (int length) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (BYTE *, DWORD); 
szFuncName char [] = "SOUNDIN"; 

Declaration in Delphi: 
SOUNDIN Procedure (buffer: Pchar; Size: DWORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub SOUNDIN Lib "port" (A $ ByVal, ByVal Gr As Long) 


SOUNDOUT 
Starts a sound (mono) given the data in the buffer memory. 
Parameters: memory and memory size (in bytes) 
Return: none 

Declaration in Java: 
public static void native soundout (int [] buffer) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (BYTE *, DWORD); 
szFuncName char [] = "SOUNDOUT"; 

Declaration in Delphi: 
SOUNDOUT Procedure (buffer: Pchar; Size: DWORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub SOUNDOUT Lib "port" (A $ ByVal, ByVal Gr As Long) 


SOUNDGETRATE 
Erfagt the set sampling frequency. 
Parameters: none 
Return: sampling in samples per second, for example 11025; 

Declaration in Java: 
public static int native soundgetrate () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef WORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "SOUNDGETRATE"; 

Declaration in Delphi: 
Function SOUNDGETRATE: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function SOUNDGETRATE Lib "port" () As Integer 


SOUNDSETRATE 
If a sampling frequency. 
Parameters: sampling in samples per second 
Return: Previous sampling in samples per second. e.g. 11025; 

Declaration in Java: 
public static int native soundsetrate (int rate) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK * LPFNDLLFUNC) (DWORD); 
szFuncName char [] = "SOUNDSETRATE"; 

Declaration in Delphi: 
Function SOUNDSETRATE (rate: DWORD): DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function SOUNDSETRATE Lib "port" (ByVal rate As Long) As Long 


SOUNGETBYTES 
Bytes per sample ask 
Parameters: none 
Return: 1 or 2 A byte equal to 8 bits per sample. Two bytes 
correspond to 16 bits / sample. 

Declaration in Java: 
public static int native soundgetbytes () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef WORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "SOUNDGETBYTES"; 

Declaration in Delphi: 
Function SOUNDGETBYTES: WORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function SOUNDGETBYTES Lib "port" () As Integer 


SOUNDSETBYTES 
Bytes per sample. 
Parameters: 1 or 2 A byte equal to 8 bits per sample. Two bytes 
correspond to 16 bits / sample. 
Return: Previous bytes per sample. 

Declaration in Java: 
public static int native soundsetbytes (int bytes) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK * LPFNDLLFUNC) (DWORD); 
szFuncName char [] = "SOUNDSETBYTES"; 

Declaration in Delphi: 
Function SOUNDSETBYTES (bytes: DWORD): DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function SOUNDSETBYTES (ByVal rate As Long) As Long 


SOUNDBUSY 
Testing whether the sound card currently employed. 
Parameters: none 
Return: state of the sound card (1 / 0) 

Declaration in Java: 
public static native boolean soundbusy () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "SOUNDBUSY"; 


Joystick: 
========= 

Note: The joystick is properly as a Windows games controller 
adjusted and calibrated. 


JOYX 
X-position there. 
Parameters: none 
Return: position as a numerical value. 

Declaration in Java: 
public static int native joyx () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYX"; 

Declaration in Delphi: 
Function JOYX: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYX Lib "port" () As Long 


JOYY 
Y position there. 
Parameters: none 
Return: position as a numerical value. 

Declaration in Java: 
public static int native joyy () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYY"; 

Declaration in Delphi: 
Function JOYY: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYY Lib "port" () As Long 


JOYZ 
Z-position there. 
Parameters: none 
Return: position as a numerical value. 

Declaration in Java: 
public static int native joyz () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYZ"; 

Declaration in Delphi: 
Function JOYZ: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYZ Lib "port" () As Long 


JOYR 
R-position there. 
Parameters: none 
Return: position as a numerical value. 

Declaration in Java: 
public static int native joyr () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYR"; 

Declaration in Delphi: 
Function JOYR: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYR Lib "port" () As Long 


JOYU 
U-position there. 
Parameters: none 
Return: position as a numerical value. 

Declaration in Java: 
public static int native joyu () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYU"; 

Declaration in Delphi: 
Function JOYU: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYU Lib "port" () As Long 


JOYV 
V position there. 
Parameters: none 
Return: position as a numerical value. 

Declaration in Java: 
public static int native joyv () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYV"; 

Declaration in Delphi: 
Function JOYV: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYV Lib "port" () As Long 


JOYBUTTON 
Key query 
Parameters: none 
Return: key as numerical value. 

Declaration in Java: 
public static int native joybutton () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "JOYBUTTON"; 

Declaration in Delphi: 
Function JOYBUTTON: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function JOYBUTTON Lib "port" () As Long 


JOYSTICK 
Total query in a call 
Parameters: Seven variables for inclusion of values 
Return: none. 

Declaration in Java: 
public static native int [] joystick () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (DWORD *, DWORD *, DWORD *, DWORD *, DWORD *, DWORD *, DWORD *); 
szFuncName char [] = "JOYSTICK"; 

Declaration in Delphi: 
Procedure JOYSTICK (VAR X, Y, Z, R, U, V, B: DWORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub JOYSTICK Lib "port" (ByVal X As Long, ByVal Y As Long ....) 


Time routines: 
============= 

DELAY 
Delay in milliseconds. 
Parameters: Time in milliseconds 
Return: none 

Declaration in Java: 
public static native void delay (int duration) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "DELAY"; 

Declaration in Delphi: 
Procedure DELAY (ms: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub DELAY Lib "port" (ByVal ms%) 
   

TIMEINIT 
Sets the millisecond time counter to zero. 
Parameters: none 
Return: none 

Declaration in Java: 
public static void native timeinit () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "TIMEINIT"; 

Declaration in Delphi: 
Procedure TIMEINIT; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub TIMEINIT Lib "port" () 


TIMEREAD 
Milliseconds timer read. The result is the number of 
last milliseconds after starting TIMEINIT. 
Parameters: none 
Return: milliseconds as a numerical value 

Declaration in Java: 
public static native long timeread () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "TIMEREAD"; 

Declaration in Delphi: 
Function TIMEREAD: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function TIMEREAD Lib "port" () As Long 


DELAYUS 
Delay in microseconds. 
Parameters: time in microseconds 
Return: none 

Declaration in Java: 
public static void native delayus (long duration) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (DWORD); 
szFuncName char [] = "DELAYUS"; 

Declaration in Delphi: 
DELAYUS Procedure (ms: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub DELAYUS Lib "port" (ByVal ms%) 


TIMEINITUS 
Sets the microseconds-Zeitzlher to zero. 
Parameters: none 
Return: none 

Declaration in Java: 
public static void native timeinitus () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (); 
szFuncName char [] = "TIMEINITUS"; 

Declaration in Delphi: 
Procedure TIMEINITUS; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub TIMEINITUS Lib "port" () 


TIMEREADUS 
Microseconds timer read. The result is the number of 
last microseconds after starting TIMEINITUS. 
Parameters: none 
Return: microseconds as a numerical value 

Declaration in Java: 
public static native long timereadus () throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef DWORD (CALLBACK LPFNDLLFUNC *) (); 
szFuncName char [] = "TIMEREADUS"; 

Declaration in Delphi: 
Function TIMEREADUS: DWORD; stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Function TIMEREADUS Lib "port" () As Long 


REALTIME 
Highest priority. This call is in time 
Expenditure useful. He should be activated only briefly, since all 
other programs will run slower. 
Parameters: 0 or 1 
Return: none 

Declaration in Java: 
public static void realtime native (boolean mode) throws PortDLLWrapperException; 

Declaration in C / C + +: 
typedef int (* CALLBACK LPFNDLLFUNC) (WORD); 
szFuncName char [] = "REALTIME"; 

Declaration in Delphi: 
Procedure REALTIME (d: WORD); stdcall; external 'port.dll'; 

Declaration in VB and VBA: 
Declare Sub REALTIME Lib "port" (ByVal i As Boolean)